home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 07 - 1991 / 07.08 Aug 91 / Dots Source / cDotsTask.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-02  |  1011 b   |  37 lines  |  [TEXT/KAHL]

  1. /**************************************
  2.     cDotsTask.h
  3. **************************************/
  4.  
  5. #define _H_cDotsTask
  6.  
  7. #include "cDotsDoc.h"
  8. #include "cDotsPane.h"
  9. #include "dotsTypes.h"
  10.  
  11. struct cDotsTask : CMouseTask {
  12.  
  13.         /** Instance Variables **/
  14.     cDotsDoc    *fDotsDoc;        /* Document in charge of panes */
  15.     cDotsPane    *fDotsPane;        /* Pane where mouse action occured */
  16.     Boolean        fPlayerMoved;    /* Player who is making move */
  17.     Boolean        fValidMove;        /* True if previously unselected line is selected */
  18.     
  19.                     /* The next 3 fields record line chosen by user */
  20.     tLineDir    fDirection;
  21.     int            fRow;
  22.     int            fCol;
  23.     
  24.         /** Initialization **/
  25.     void        IDotsTask(short aNameIndex, cDotsPane *theDotsPane, cDotsDoc *theDotsDoc);
  26.     
  27.         /** Overrides **/
  28.     void        BeginTracking(Point *startPt);
  29.     void        KeepTracking(Point *currPt, Point *prevPt, Point *startPt);
  30.     void        EndTracking(Point *currPt, Point *prevPt, Point *startPt);
  31.     void        Do(void);
  32.     void        Undo(void);
  33.     void        Redo(void);
  34.  
  35.         /** Additions **/
  36.     Boolean        validMove(void);
  37. };